home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000407_news@columbia.edu _Fri Jul 14 01:10:35 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id BAA02828
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 14 Jul 2000 01:10:35 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id BAA03317
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 14 Jul 2000 01:10:35 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id BAA09349
  10.     for kermit.misc@watsun.cc.columbia.edu; Fri, 14 Jul 2000 01:10:47 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: jaltman@columbia.edu (Jeffrey Altman)
  13. Subject: Re: Suggestion for Kermit script language
  14. Date: 14 Jul 2000 05:10:42 GMT
  15. Organization: Columbia University
  16. Message-ID: <8km7ci$941$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <396E9035.C028E5FE@value.net>,
  20. Mark Sapiro  <msapiro@value.net> wrote:
  21. : Often in a macro or script one wishes to save the current settings of
  22. : certain parameters before changing them so that they can be restored
  23. : later.  When the setting is reflected in a variable, this can be done,
  24. : but it is a bit awkward.  Some settings are not reflected in variables,
  25. : and saving a prior setting can't be done.
  26.  
  27. I think that Frank and I would love to do this just like we would
  28. love to have a SAVE command for every feature set.  But it is a lot
  29. of work.  There are simply thousands of commands in Kermit.
  30.  
  31. : Consider the following macro which I actually use to connect to a
  32. : library cataloging and circulation system in Marin County, Calif.
  33. : marinlib = local termtyp,-
  34. :  assign termtyp \v(terminal),-
  35. :  set terminal type vt100,-
  36. :  set telopt kermit refused refused,-
  37. :  telnet marinet.lib.ca.us,-
  38. :  set terminal type \m(termtyp),-
  39. :  set telopt kermit requested requested
  40. : (the "set telopt kermit refused refused" is required because the server
  41. : responds to "WILL kermit" and "DO kermit" with "WONT UNKNOWN" and "DONT
  42. : UNKNOWN" and things deterioriate from there.)
  43.  
  44. Of course the first thing I did was to try to reproduce this problem by
  45. trying it.  The first time I connected to the host I saw the problem.
  46. Then when I tried to produce it with a debug.log I couldn't.  Nor could
  47. I reproduce the problem anytime after that.
  48.  
  49.  DNS Lookup...  Trying 199.88.71.7...  Reverse DNS Lookup... (OK)
  50. TELNET SENT WILL AUTHENTICATION
  51. TELNET SENT WILL NAWS
  52. TELNET SENT WILL TERMINAL-TYPE
  53. TELNET SENT WILL NEW-ENVIRONMENT
  54. <wait for outstanding negotiations>
  55. TELNET RCVD DO SUPPRESS-GO-AHEAD
  56. TELNET SENT WILL SUPPRESS-GO-AHEAD
  57. TELNET RCVD WILL SUPPRESS-GO-AHEAD
  58. TELNET SENT DO SUPPRESS-GO-AHEAD
  59. TELNET RCVD WILL ECHO
  60. TELNET SENT DO ECHO
  61. TELNET RCVD DO TERMINAL-TYPE
  62. TELNET RCVD DO XDISPLOC
  63. TELNET SENT WONT XDISPLOC
  64. TELNET RCVD DO OLD-ENVIRON
  65. TELNET SENT WONT OLD-ENVIRON
  66. TELNET RCVD DO NAWS
  67. TELNET RCVD DONT AUTHENTICATION
  68.   IAC SE
  69. TELNET RCVD DONT NEW-ENVIRONMENT
  70. <no outstanding negotiations>
  71. TELNET SENT SB TERMINAL-TYPE IS VT320 IAC SE
  72. TELNET SENT SB NAWS 80 4980 IAC SE
  73. TELNET SENT DO KERMIT
  74. TELNET SENT WILL KERMIT
  75. <wait for outstanding negotiations>
  76. TELNET RCVD DO SUPPRESS-GO-AHEAD
  77. TELNET RCVD WILL SUPPRESS-GO-AHEAD
  78. TELNET RCVD WILL ECHO
  79. TELNET RCVD WONT KERMIT
  80. TELNET RCVD DONT KERMIT
  81. <no outstanding negotiations>
  82. Welcome to MARINET, please login using "marinlib" to connect to the library.
  83.  
  84. login:
  85.  
  86. This seems like there may be a memory overwrite problem or an 
  87. uninitialized variable or two on the stack in this Telnet daemon.
  88.  
  89. : Note that I am only guessing that "set telopt kermit requested
  90. : requested" the proper state to restore to.
  91.  
  92. It is.  You could use SHOW TELOPT to see the current settings before 
  93. you make the change.
  94.  
  95.                   Jeffrey Altman * Sr.Software Designer
  96.                  The Kermit Project * Columbia University
  97.                612 West 115th St * New York, NY * 10025 * USA
  98.      http://www.kermit-project.org/ * kermit-support@kermit-project.org